package com.assistant.common;

/**
 * @Classname PageResult
 * @Description TODO
 * @Date 2025/3/5 09:32
 * @Created by xxx
 */
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
//@Data
//@AllArgsConstructor
//@NoArgsConstructor
public class PageResult implements Serializable {

    private Long total; //总记录数

    private List records; //当前页数据集合

    public PageResult(Long total, List records) {
        this.total = total;
        this.records = records;
    }

    public PageResult() {

    }

    public Long getTotal() {
        return total;
    }

    public List getRecords() {
        return records;
    }

    public void setRecords(List records) {
        this.records = records;
    }

    public void setTotal(Long total) {
        this.total = total;
    }
}
